package com.yummy.mapper;

import com.yummy.dto.ManagerVo;
import com.yummy.dto.QueryEmployeeVo;
import com.yummy.entity.Employee;
import com.yummy.common.CommonMapper;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
* @author yinbo
* @description 针对表【employee(员工信息)】的数据库操作Mapper
* @createDate 2022-08-29 23:07:35
* @Entity com.yummy.entity.Employee
*/
@Repository
public interface EmployeeMapper extends CommonMapper<Employee> {


	Employee selectByNameAndPassword(@Param("username") String username, @Param("password") String password);

	Employee selectByName(String username);

	int insertEmployee(Employee employee);

	List<Employee> selectAllByCondition(QueryEmployeeVo queryEmployeeVo);

    List<ManagerVo> selectManagerByName(@Param("username") String name);

	int updateEmployee(Employee employee);

	int deleteByPrimaryKeys(String[] ids);

	int insertEmployees(List<Employee> employees);

	int updateStatusById(@Param("id") String id, @Param("status") String status);

}
